* {
  touch-action: pan-y;
  box-sizing: border-box;
}

.watchMsg {
  position: absolute;
  width: 92vw;
  height: 25px;
  left: 50%;
  top: 50%;
  margin-top: -219px;
  margin-left: -46vw;
  font-size: 12px;
  color: blue;
  overflow: hidden;

  div {
    display: inline-block;
    height: 25px;
    line-height: 25px;
    // 对超出内容隐藏
    // overflow: hidden;
    // 显示省略符号来代表被修剪的文本
    // text-overflow: ellipsis;
    // 文本不会换行，文本会在在同一行上继续，直到遇到 <br> 标签为止。
    white-space: nowrap;
    animation-name: textFrame;
    animation-duration: 10s;
    animation-delay: 3s;
    animation-iteration-count: 1;
    animation-timing-function: linear;
  }
}

@keyframes textFrame {
  // 起始位置
  0% {
    transform: translateX(100%);
    -webkit-transform: translateX(0px);
  }
  // 终点位置
  100% {
    -webkit-transform: translateX(-100%);
  }
}

.player {
  width: 364px;
  height: 560px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -182px;
  margin-top: -280px;

  .user {
    height: 70px;
    width: 100%;
    padding: 9px 4px;

    .icon {
      width: 100%;
      height: 49px;
      display: flex;
      justify-content: center;

      div {
        width: 49px;
        height: 49px;

        img {
          border-radius: 50%;
          width: 49px;
          height: 49px;
          overflow: hidden;
          border: 3px solid #eee;
        }
      }
    }

    .floor {
      width: 100%;
      height: 49px;
      padding: 0 4px;
      position: relative;

      // 观众席位按钮
      button {
        width: 100%;
        height: 100%;
        font-size: 13px;
      }

      .badge {
        position: absolute;
        right: 5px;
        top: -5px;
      }
    }

    .body {
      background: rgba(0, 0, 0, .7);
      height: 49px;
      font-size: 15px;
      text-align: center;
      border-radius: 3px;

      .name {
        margin-top: 4px;
        line-height: 21px;
        color: #47fc47;
      }

      .score {
        margin-top: 4px;
        line-height: 21px;
        color: gold;
      }

      .allTime {
        line-height: 21px;
        font-size: 13px;
        color: yellow;

        span {
          color: white;
        }
      }

      .stepTime {
        line-height: 21px;
        font-size: 13px;
        color: yellow;

        span {
          color: white;
        }
      }
    }
  }

  .userMsg {
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 432px;
    z-index: 10;
    width: 100%;
    text-align: center;

    span {
      background: rgba(0, 0, 0, .8);
      color: white;
      font-size: 15px;
      height: 100%;
      padding: 4px 18px;
      min-width: 32px;
      display: inline-block;
      border-radius: 8px;
      text-align: left;
    }
  }

  .enemy {
    height: 70px;
    width: 100%;
    padding: 9px 4px;
    margin-top: 420px;

    .icon {
      width: 100%;
      height: 49px;
      display: flex;
      justify-content: center;

      div {
        width: 49px;
        height: 49px;

        img {
          border-radius: 50%;
          width: 49px;
          height: 49px;
          overflow: hidden;
          border: 3px solid #eee;
        }
      }
    }

    .floor {
      width: 100%;
      height: 49px;
      padding: 0 4px;

      button {
        width: 100%;
        height: 100%;
        font-size: 13px;
      }
    }

    .body {
      background: rgba(0, 0, 0, .7);
      height: 49px;
      font-size: 15px;
      text-align: center;
      border-radius: 3px;

      .name {
        margin-top: 4px;
        line-height: 21px;
        color: #47fc47;
      }

      .score {
        margin-top: 4px;
        line-height: 21px;
        color: gold;
      }

      .allTime {
        line-height: 21px;
        font-size: 13px;
        color: yellow;

        span {
          color: white;
          position: relative;
        }

        .timeout::after {
          content: '';
          border-radius: 2px;
          box-shadow: 0 0 8px red inset;
          width: 100%;
          height: 100%;
          display: block;
          position: absolute;
          top: 0;
          left: 0;
          animation: timeout 1s infinite;
        }
      }

      .stepTime {
        line-height: 21px;
        font-size: 13px;
        color: yellow;

        span {
          color: white;
          position: relative;
        }

        .timeout::after {
          content: '';
          border-radius: 2px;
          box-shadow: 0 0 8px red inset;
          width: 100%;
          height: 100%;
          display: block;
          position: absolute;
          top: 0;
          left: 0;
          animation: timeout 1s infinite;
        }
      }
    }
  }

  .enemyMsg {
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 98px;
    z-index: 10;
    width: 100%;
    text-align: center;

    span {
      background: rgba(0, 0, 0, .8);
      color: white;
      font-size: 15px;
      height: 100%;
      padding: 4px 18px;
      min-width: 32px;
      display: inline-block;
      border-radius: 8px;
      text-align: left;
    }
  }
}

.msgWindow {
  width: 322px;
  height: 336px;
  position: absolute;
  top: 50%;
  left: 50%;
  background: white;
  margin-top: -168px;
  margin-left: -161px;
  border-radius: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, .6);
  box-shadow: 0 0 35px rgba(105, 100, 105, 0.5);

  .title {
    width: 100%;
    height: 46px;
    padding-left: 4px;
    background: rgba(255, 255, 255, 1);
    display: flex;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;

    div {
      width: 28px;
      margin: 10px 0;
      background: url('@/assets/images/pk.png') no-repeat center center;
      background-size: 100% 100%;
      border: 1px solid #fff;
    }

    span {
      width: 100%;
      line-height: 25px;
      margin: 10px 0;
      letter-spacing: 1px;
      font-size: 18px;
      color: black;
      display: block;
      border: 1px solid #fff;
    }
  }

  .content {
    .list {
      margin: 0;
      height: 232px;
      overflow-y: scroll;
      padding: 0 14px;

      .colTitle {
        color: rgb(230, 230, 0);
      }

      .colContent {
        color: rgb(0, 244, 0);
      }

      p {
        margin: 7px 0;
        font-size: 15px;
        text-align: left;

        .self {
          color: rgb(0, 244, 0);
        }

        .enemys {
          color: darkorange;
        }

        .system {
          color: #ffc800;
        }

        .tourist {
          color: #e93eb9;
        }
      }
    }

    .list:after {
      position: absolute;
      bottom: 0;
    }

    .floor {
      padding: 7px 14px;

      button {
        width: 100%;
        height: 42px;
        font-size: 14px;
      }
    }

  }
}


.watch {
  width: 322px;
  height: 336px;
  position: absolute;
  top: 50%;
  left: 50%;
  background: white;
  margin-top: -168px;
  margin-left: -161px;
  border-radius: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, .6);
  box-shadow: 0 0 35px rgba(105, 100, 105, 0.5);

  .title {
    width: 100%;
    height: 46px;
    padding-left: 4px;
    background: rgba(255, 255, 255, 1);
    display: flex;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;

    div {
      width: 28px;
      margin: 10px 0;
      background: url('@/assets/images/pk.png') no-repeat center center;
      background-size: 100% 100%;
      border: 1px solid #fff;
    }

    span {
      width: 100%;
      line-height: 26px;
      margin: 10px 0;
      letter-spacing: 1px;
      font-size: 18px;
      color: black;
      display: block;
      border: 1px solid #fff;
    }
  }

  .content {

    .list {
      margin: 0;
      height: 232px;
      overflow-y: scroll;
      padding: 0 14px;

      .colTitle {
        color: rgb(230, 230, 0);
      }

      .colContent {
        color: rgb(0, 244, 0);
      }

      .row {
        display: flex;
        align-items: center;
        text-align: center;
        height: 42px;
        color: white;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, .5);
        cursor: pointer;
      }
    }

    .floor {
      padding: 7px 14px;

      button {
        width: 100%;
        height: 42px;
        font-size: 14px;
      }
    }
  }
}

@keyframes timeout {
  from{
    opacity: 0.3;
  }
  to {
    opacity: 0.8;
  }
}
